<?php
require_once 'PHPUnit/Framework.php';
require_once 'TVB/pms/pdes/common/bootstrap.php';
require_once 'TVB/pms/pdes/common/util/MisApi.class.php'; 
require_once 'TVB/pms/pdes/common/util/MisApiConfig.php'; 

require_once 'TVB/pms/pdes/common/util/mis/MisInfoGeneralInfo.class.php';
require_once 'TVB/pms/pdes/common/util/mis/MisMapping.class.php';

class MisInfoGeneralInfoTest extends PHPUnit_framework_TestCase
{
    public $info_general_information;

    function setup()
    {
        $mis_pdes = array(
            'pdes_eid'  => 83
        );
        $this->info_general_information = new MisInfoGeneralInfo($mis_pdes);
    }

    function tearDown()
    {
        unset($this->info_general_information);
    }

    function testExistsRelation()
    {
        $pageants = array(
            '888'
        );
        $ret = $this->info_general_information->import($pageants);
		$this->assertEquals($ret, TRUE); 	
    }

    function testNotExistsRelation()
    {
        $pageants = array(
            '3999', '3333',
        );
        $ret = $this->info_general_information->import($pageants);
		$this->assertEquals($ret, TRUE); 	
    }
}
?>
